<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1><?=$src;?></h1>

<script>
    // 设置跳转的页面地址和倒计时的秒数
    var seconds = 5;
    var redirectUrl = "<?=$url;?>";

    function countdown() {
        seconds = seconds - 1;
        if (seconds < 0) {
            // 时间到，跳转页面
            window.location = redirectUrl;
        } else {
            // 更新显示的剩余时间
            document.getElementById('countdown').innerHTML = seconds;
        }
    }

    // 页面加载完成后开始倒计时
    window.onload = function() {
        setInterval(countdown, 1000);
    }
</script>
<p>页面将在 <span id="countdown">5</span> 秒后跳转...</p>
</body>
</html>